<?php
/**
 * Created by PhpStorm.
 * User: yellow
 * Date: 2019/7/16
 * Time: 14:19
 */

namespace app\admin\controller;

use app\admin\logic\LoginLogLogic;
use think\facade\Request;

class LoginLog extends Base
{

    private $loginLogLogic;

    public function __construct()
    {
        parent::__construct();
        $this->loginLogLogic = new LoginLogLogic();
    }

    public function index(){
        return $this->fetch();
    }

    public function ajaxIndex(){
        $tempWhere = Request::request();
        $res = $this->loginLogLogic->logList($tempWhere, self::$nowPage);
        return json($res);
    }

}